import {push} from 'react-router-redux';

export function authLogin(token) {
  return (dispatch) => {
    dispatch({type:'auth/login', payload:token});
    dispatch(push('/'));
  }
}

